
package cn.org.chiss.rhin._2015.base.zhuanzhen;

import lombok.experimental.Accessors;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>referralTowardPrimitive�� Java �ࡣ
 * 
 * <p>����ģʽƬ��ָ�������ڴ����е�Ԥ�����ݡ�
 * <pre>
 * &lt;simpleType name="referralTowardPrimitive"&gt;
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
 *     &lt;enumeration value="Up"/&gt;
 *     &lt;enumeration value="Down"/&gt;
 *   &lt;/restriction&gt;
 * &lt;/simpleType&gt;
 * </pre>
 * 
 */
@XmlType(name = "referralTowardPrimitive")
@XmlEnum
@Accessors(chain = true)
public enum ReferralTowardPrimitive {

    @XmlEnumValue("Up")
    UP("Up"),
    @XmlEnumValue("Down")
    DOWN("Down");
    private final String value;

    ReferralTowardPrimitive(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static ReferralTowardPrimitive fromValue(String v) {
        for (ReferralTowardPrimitive c: ReferralTowardPrimitive.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}
